<template>
  <div class="about">
    <div class="about-header">
      <h1>关于我</h1>
      <p>一名热爱技术、追求卓越的前端开发者</p>
    </div>

    <div class="about-content">
      <div class="about-text">
        <h2>我的故事</h2>
        <p>我是一名有着5年前端开发经验的专业人士。从大学时期开始接触编程，我对前端开发产生了浓厚的兴趣。毕业后，我加入了多家知名互联网公司，参与了众多大型项目的开发。</p>
        
        <p>我热爱学习新技术，始终保持着对前端领域最新发展的关注。我相信好的代码不仅要功能完善，更要易于维护和扩展。</p>
        
        <h3>技术专长</h3>
        <ul class="skills-list">
          <li>Vue.js / React 框架开发</li>
          <li>响应式网页设计</li>
          <li>性能优化与代码重构</li>
          <li>团队协作与项目管理</li>
          <li>用户体验设计</li>
        </ul>
      </div>

      <div class="about-image">
        <img src="https://picsum.photos/400/500?random=2" alt="About Me">
      </div>
    </div>

    <div class="experience">
      <h2>工作经历</h2>
      <div class="timeline">
        <div class="timeline-item">
          <div class="timeline-date">2022 - 至今</div>
          <div class="timeline-content">
            <h4>高级前端工程师</h4>
            <p>某知名互联网公司</p>
            <p>负责核心产品的前端架构设计和开发，带领团队完成多个重要项目。</p>
          </div>
        </div>
        <div class="timeline-item">
          <div class="timeline-date">2020 - 2022</div>
          <div class="timeline-content">
            <h4>前端开发工程师</h4>
            <p>某科技创业公司</p>
            <p>参与公司产品从0到1的开发过程，积累了丰富的项目实战经验。</p>
          </div>
        </div>
        <div class="timeline-item">
          <div class="timeline-date">2019 - 2020</div>
          <div class="timeline-content">
            <h4>前端实习生</h4>
            <p>某软件公司</p>
            <p>学习前端开发基础知识，参与实际项目开发，为职业生涯打下坚实基础。</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped>
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.about-header p {
  font-size: 1.2rem;
  color: #666;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.about-text h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-text h3 {
  color: #2c3e50;
  margin: 2rem 0 1rem 0;
}

.skills-list {
  list-style: none;
  padding: 0;
}

.skills-list li {
  padding: 0.5rem 0;
  color: #666;
  border-bottom: 1px solid #eee;
}

.skills-list li:before {
  content: "✓";
  color: #3498db;
  font-weight: bold;
  margin-right: 0.5rem;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.experience h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #3498db;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-date {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #3498db;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  top: -10px;
}

.timeline-content {
  width: 45%;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 55%;
}

.timeline-content h4 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline:before {
    left: 20px;
  }
  
  .timeline-date {
    left: 20px;
    transform: none;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .about-header h1 {
    font-size: 2rem;
  }
}
</style>